﻿@model Sharp.WebBooter.Areas.CMS.Models.MemberSettingViewModel
@{
    Layout = null;
}
<section class="content-header">
    <h1>
        设置
    </h1>
    <ol class="breadcrumb">
        <li><a href="@Url.Action("Index", "Home")"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">用户</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-lg-12 col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">

                </div>
                <div class="box-body no-padding">
                    <form id="settingForm" class="form-horizontal" data-validate="parsley" action="#">


                        <div class="form-group">
                       
                                @Html.LabelFor(m => m.Register, new { @class = "col-sm-3 control-label" })
                           
                            <div class="col-sm-9">
                                @Html.Bootstrap().CheckBoxFor(m => m.Register).AddClass("form-control")
                            </div>
                        </div>
                        <div class="form-group"> 
                                @Html.LabelFor(m => m.ValidateCode, new { @class = "col-sm-3 control-label" })
                            
                            <div class="col-sm-9">
                                @Html.Bootstrap().CheckBoxFor(m => m.ValidateCode).AddClass("form-control")
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="col-md-3 control-label">新会员审核</label>
                            <div class="col-md-8">
                                <div class="radio-list">
                                    <label class="radio-inline">
                                        <input type="radio" value="1" name="data[regverify]">  邮件
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" value="3" name="data[regverify]">  手机验证码
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" checked="" value="0" name="data[regverify]"> 关闭
                                    </label>
                                </div>
                                <span class="help-block">若使用手机验证码必须选择手机注册模式</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">同一IP注册间隔限制</label>
                            <div class="col-md-8">
                                <label><input type="text" value="" name="data[regiptime]" class="form-control"></label>
                                <span class="help-block">单位小时</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">会员名规则（正则）</label>
                            <div class="col-md-8">
                                <label><input type="text" value="" id="regnamerule" class="form-control"></label>
                                <label>
                                    <select name="pattern_select" onchange="javascript: $('#dr_regnamerule').val(this.value);" class="form-control">
                                        <option value="">正则验证</option>
                                        <option value="/.*/">不限制</option>
                                        <option value="/^[0-9.-]+$/">数字</option>
                                        <option value="/^[0-9-]+$/">整数</option>
                                        <option value="/^[a-z]+$/i">字母</option>
                                        <option value="/^[0-9a-z]+$/i">数字+字母</option>
                                        @*<option value="/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/">E-mail</option>*@
                                        <option value="/^[0-9]{5,20}$/">QQ</option>
                                        <option value="/^(1)[0-9]{10}$/">手机号码</option>
                                        <option value="/^[0-9-]{6,13}$/">电话号码</option>
                                        <option value="/^[0-9]{6}$/">邮政编码</option>
                                    </select>
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">不允许注册的会员名</label>
                            <div class="col-md-8">
                                <input type="text" value="" name="data[regnotallow]" class="form-control">
                                <span class="help-block">多个会员名以分号“,”分隔</span>
                            </div>
                        </div>
                         
                        <div class="form-group">
                            <label class="col-md-3 control-label">快捷登陆模式</label>
                            <div class="col-md-8">
                                <div class="bootstrap-switch bootstrap-switch-wrapper bootstrap-switch-small bootstrap-switch-animate bootstrap-switch-on" style="width: 137.6px;"><div class="bootstrap-switch-container" style="width: 204px; margin-left: 0px;"><span class="bootstrap-switch-handle-on bootstrap-switch-success" style="width: 68px;">直接注册</span><span class="bootstrap-switch-label" style="width: 68px;">&nbsp;</span><span class="bootstrap-switch-handle-off bootstrap-switch-danger" style="width: 68px;">绑定账号</span><input type="checkbox" data-size="small" class="make-switch" data-off-color="danger" data-on-color="success" data-off-text="绑定账号" data-on-text="直接注册" checked="" value="1" name="data[regoauth]"></div></div>
                                <span class="help-block">绑定账号指必须注册一个本站账号；直接注册指用登录者的昵称直接注册本站账号</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-9">
                                @Html.Bootstrap().Button("保存").Style(BootstrapStyle.Primary).Click("SaveFormS('" + @Url.Action("Save") + "');")
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</section>